package com.huyanqi.dao.impl;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import com.huyanqi.core.dao.impl.BaseDAOImpl;
import com.huyanqi.dao.CommentDAO;
import com.huyanqi.entity.Comment;

@Repository("CommentDAO")
@Transactional
public class CommentDAOImpl extends BaseDAOImpl<Comment,Long> implements CommentDAO{

	@PersistenceContext(unitName = "tzlUnit")
	private EntityManager entityManager;

	@Override
	public EntityManager getEntityManager() {
		
		return this.entityManager;
	}

}
